<?php


/** @var \Laravel\Lumen\Routing\Router $router */

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It is a breeze. Simply tell Lumen the URIs it should respond to
| and give it the Closure to call when that URI is requested.
|
*/
//后台API
$router->group([
    'prefix'		=> 'admin',
//    'middleware' => 'admin'
], function ($router) {
    //Admin Api-通用型配置
    $router->get('{module:[a-zA-Z]+}/{ctl:[a-zA-Z]+}/{action:[a-z][A-Za-z0-9]*}', 'InitController@Admin');
    $router->post('{module:[a-zA-Z]+}/{ctl:[a-zA-Z]+}/{action:[a-z][A-Za-z0-9]*}', 'InitController@Admin');
});
